#import <Foundation/Foundation.h>
#import "hello.h"

void fun(int a, int *b);

int main(int argc, const char *argv[]) {
    @autoreleasepool {
        // insert code here...
        NSLog(@"Hello, World!");
        int a = 10;
        int b = 10;
        fun(a, &b);
        NSLog(@"main a:%ld", a);
        NSLog(@"main b:%ld", b);
    }
    Hello *hello = [[Hello alloc] init];

    Hello *hello2 = [[Hello alloc] initWithName:@"tony"];
    hello.os = @"mac";
    NSLog([hello hello:@"eric" caller:@"AppCode"]);
    NSLog([hello2 hello:@"eric" caller:@"AppCode"]);

    NSArray *hellos = @[@"Hello", @"Bonjour", @"Hola", @"こんにちは", @"Ciao", @"안녕하세요"];
    for (int i = 0; i < [hellos count]; i++) {
        NSLog(@"%@", [hellos objectAtIndex:i]);
    }

    NSUUID *uuid = [NSUUID UUID];
    NSLog([uuid UUIDString]);

    return 0;
}

void fun(int a, int *b) {
    a = 20;
    *b = 20;
    NSLog(@"fun a:%ld", a);
    NSLog(@"fun b:%ld", *b);
}
